/********************************
 * Author: Nikhil Kishore
 * Date; July 11, 2014
 * Description: Testing getCost function
**********************************/

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "rngs.h"


int main(){

	int i;
       	int j = 0;
     	int k [27] = {curse, estate, duchy, province, copper, silver, gold, adventurer, council_room,
                   feast, gardens, mine, remodel, smithy, village, baron, great_hall, minion, steward,
                   tribute, ambassador, cutpurse, embargo, outpost, salvager, sea_hag, treasure_map};

   for (i = 0; i < 27; i++){
      if (getCost(k[i]) <= 8)
	 continue;

      else
	 printf("%d has failed", k[i]);
      j++;
   }
   
   if (j == 0)
      printf("Unittest1 [getCost()] shows no errors.\n");
   
   
   return (0);
   
}

